@layout("/common/_container.html"){
<style>
    .divBox input {
        width: 40%;
        height: 40px;
        border: 1px solid #dddddd;
        border-radius: 5px;
        padding-left: 10px;
    }
</style>

<div class="ibox-content">
    <div style="display: none">
        <input type="hidden" id="customerIdValue" value="${customerId}">
        <input type="hidden" id="yellowNumberValue" value="${yellowNumber}">
    </div>
    <div class="clearfix divBox" style="padding-top: 20px;text-align: center">
        <div>
            <span>黄历编号</span>
            <input type="text" id="yellow" value="${yellowNumber}">
        </div>
        <div style="margin-top: 20px;">
            <button type="button" class="btn" id="numberedSubmission"
                    style="background: #30add1;color: white;width: 96px;">保存
            </button>
        </div>
    </div>
</div>
<script>
    $("#numberedSubmission").click(function () {
        var customerId = $("#customerIdValue").val();
        var yellow = $("#yellow").val();
        $.ajax({
            url: Feng.ctxPath + "/doctorLooked/updateNumber",
            type: "post",
            data: {
                customerId: customerId,
                yellowNumber: yellow
            },
            success: function (data) {
                Feng.success("黄页编号修改成功!");
                window.parent.$('#calendar').fullCalendar('refetchEvents');
                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
                parent.layer.close(index);
            },
            error: function (data) {

            }
        });
    })

</script>
@}

